package com.richard.home.provider

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.facade.template.IProvider
import com.richard.base.route.RouterPath
import com.richard.home.di.homeModule
import org.koin.core.context.loadKoinModules

/**
 ***************************************
 * 项目名称:Giggle
 * @Author wuzhiguo
 * 邮箱：wuzhiguo@ksjgs.com
 * 创建时间: 2020/6/1     3:41 PM
 * 用途: 首页数据初始化  provider impl
 ***************************************

 */

@Route(path = RouterPath.STARTER.HOME_PROVIDER)
class InitHomeProvider : IProvider {
    private var context: Context? = null
    override fun init(context: Context?) {
        this.context = context
        loadKoinModules(homeModule)
    }
}